home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / goodies / offscreen.win / application.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.4 KB  |  63 lines

  1. /*
  2.     File:        Application.h
  3.  
  4.     Contains:    QuickTime 3.0 Offscreen sample application.
  5.  
  6.     Written by:    Scott Kuechle
  7.                 based on MDIPlayer code by Brian S. Friedkin
  8.  
  9.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.        <1>         4/24/98        srk        first file
  14.         
  15.  
  16.  NOTES:
  17.  
  18.  
  19.  TO DO:
  20.  
  21. */
  22.  
  23. #pragma once
  24.  
  25. // Macintosh headers
  26. #include "MacTypes.h"
  27. #include "QTML.h"
  28. #include "Movies.h"
  29. #include "Scrap.h"
  30. #include "FixMath.h"
  31. #include "NumberFormatting.h"
  32. #include "TextUtils.h"
  33. #include "Resources.h"
  34. #include "quickdraw.h"
  35. #include "files.h"
  36. #include "PictUtils.h"
  37.  
  38. #include <string.h>
  39.  
  40. // Windows headers
  41. #define    STRICT
  42. #include <windows.h>
  43. #include "resource.h"
  44.  
  45. // Program headers
  46. #include "ApplicationPrivate.h"
  47.  
  48.  
  49. #define    RECT_WIDTH(r)    (r.right-r.left)
  50. #define    RECT_HEIGHT(r)    (r.bottom-r.top)
  51.  
  52. #define    kWinSpacer    200
  53.  
  54. void        DrawBackgroundBitmap(HDC hDC, HWND hwnd, HANDLE hBitmap, RECT *updateRect);
  55. void        DrawHelpMessage(HDC    hDC, HWND hwnd);
  56. WORD        GetDCBitDepth(HDC hDC);
  57. HPALETTE    UseCustomPalette(HDC hDC, HPALETTE    newPalette);
  58. void        DoDrawFrameInfo(HDC    hMemDC, HWND hwnd, Rect *movieBounds, TimeValue theTime);
  59. HBITMAP        DoCreateDIBSection(HDC dc, LPRGBQUAD srcRgbQuadArray,WORD depth,LONG width,LONG    height);
  60. HDC            DoCreateMemoryDC(HWND    hwnd);
  61. void        CenterMovieRectInWindow(HWND hwnd, int movWidth, int movHeight, Rect *centeredRect);
  62.  
  63.